package com.smz.dao;


import com.smz.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDAO {


    List<Role> selectAllRoleByName(String username);

    int selectRoleCount();

    List<Role>selectRoleByPage(@Param("start")Integer start,@Param("end") Integer end);

    void insertRole(Role role);
    void updateRole(Role role);
    void deleteRole(@Param("id") Integer id);
    List<Role> selectAllRole();
    List<Role> selectRoleById(@Param("id")Integer id);
}
